package com.aifund.orderservice.service.impl;

import com.aifund.common.dao.AiOrderDao;
import com.aifund.common.entity.AiOrder;
import com.aifund.orderservice.service.AiOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AiOrderServiceImpl implements AiOrderService {

    @Autowired
    AiOrderDao aiOrderDao;

    @Override
    public AiOrder getByOrderNumber(String orderNumber) {
        return aiOrderDao.getByOrderNo(orderNumber);
    }

    @Override
    public void save(AiOrder aiOrder) {
        aiOrderDao.save(aiOrder);
    }
}
